﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HeaderAndFooter.Master" AutoEventWireup="true" CodeBehind="personalimgpage.aspx.cs" Inherits="AnaGiftedProject.WebForm10" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
<!-- RIGHT--><div class="rightprof">
<div class="avatar"><img src="img/noimage.jpg"  style="height:150px" width="200px"/></div>
<div id="sidebar">
<ul>
<li><a href="#">الرئيسية</a></li>
<li><a href="#">الصفحة الشخصية</a></li>	
<li><a href="#">عني</a></li>
<li><a href="#">صور</a></li>
<li><a href="#">فيديو</a></li>
<li><a href="#">الأصدقاء</a></li>
<li><a href="#">الرسائل</a></li>
<li><a href="#">لوحة التحكم</a></li>
</ul></div>
<!-- RIGHT/--></div>


<!-- LEFT--><div class="leftprof">
<div class="updates">
    <br />
    <asp:Label ID="Label1" runat="server" Text="ضع اسماً للصورة:" style="margin-right:10px"></asp:Label>
    <asp:TextBox ID="txtName" runat="server" style="margin-right: 40px" 
        Height="20px" Width="180px"></asp:TextBox>
    <br /><br />
    <asp:Label ID="Label2" runat="server" Text="اكتب وصفاً للصورة:" style="margin-right:10px"></asp:Label>
    <asp:TextBox ID="txtDes" runat="server" style="margin-right: 30px" 
        Height="20px" TextMode="MultiLine"></asp:TextBox>
    <br /><br />
    <asp:FileUpload ID="FileUpload1" runat="server" style="margin-right: 140px"/>
    <br /><br />
    <asp:Button ID="Button1" runat="server" Text="تحميل" 
        style="margin-right: 140px" onclick="Button1_Click" Width="80px" />
    <br /><hr /><br />
     <asp:DataList ID="DLPersImg" runat="server" BackColor="White" 
        BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
        DataKeyField="Id" DataSourceID="EntityDataSource1" 
        ForeColor="Black" GridLines="Horizontal" RepeatColumns="4">
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
            <asp:Image ID="Image1" runat="server" BorderColor="#999999" 
                BorderStyle="Solid" BorderWidth="1px" Height="120px" Width="150px" 
                ImageUrl='<%# Eval("PersImgTrack","~/PersImages/{0}") %>' />
            <br />
<br />
        </ItemTemplate>
        <SelectedItemStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
    </asp:DataList>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=DatabaseGiftedEntities" 
        DefaultContainerName="DatabaseGiftedEntities" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" 
        EntitySetName="PersonalImgs">
    </asp:EntityDataSource>
</div>
<!-- LEFT/--></div>

    </form>
</asp:Content>
